<template>
  <div>
    <el-form ref="formRef" :model="form" size="small" label-width="60" :show-message="false">
      <el-row :gutter="8">
        <el-col :span="6">
          <el-form-item label="操作时间" prop="roleName">
            <c-date-picker v-model:start-time="form.startTime" v-model:end-time="form.endTime"></c-date-picker>
          </el-form-item>
        </el-col>
        <el-col class="el-col-auto">
          <el-form-item>
            <el-button type="primary" @click="search">搜索</el-button>
            <el-button @click="reset">重置</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-timeline style="max-width: 600px">
      <el-timeline-item timestamp="2018/4/12" placement="top" color="#0bbd87">
        <el-card>
          <h4>Update Github template</h4>
          <p>Tom committed 2018/4/12 20:46</p>
        </el-card>
      </el-timeline-item>
      <el-timeline-item timestamp="2018/4/3" placement="top" color="#0bbd87">
        <el-card>
          <h4>Update Github template</h4>
          <p>Tom committed 2018/4/3 20:46</p>
        </el-card>
      </el-timeline-item>
      <el-timeline-item timestamp="2018/4/2" placement="top" color="#0bbd87">
        <el-card>
          <h4>Update Github template</h4>
          <p>Tom committed 2018/4/2 20:46</p>
        </el-card>
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'

const form = reactive({
  startTime: '',
  endTime: ''
})

function search() {}
function reset() {
  form.startTime = ''
  form.endTime = ''
}
</script>

<style lang="scss" scoped></style>
